import unittest
from test07_tools import login

class TestLogin(unittest.TestCase):
    def test_username_password_ok(self):
        if '登录成功' == login('admin', '123456'):
            print('用例通过')
        else:
            print('用例不通过')
    def test_password_error(self):
        if '登录失败' == login('admin', '111'):
            print('用例通过')
        else:
            print('用例不通过')
    def test_username_error(self):
        if '登录失败' == login('zhangsan', '123456'):
            print('用例通过')
        else:
            print('用例不通过')
    def test_username_password_error(self):
        if '登录失败' == login('zhangsan', '111'):
            print('用例通过')
        else:
            print('用例不通过')

